package com.example.mapstruct.simple_map;


import java.util.ArrayList;

public class Main {
    public static void main(String[] args) {
        Car car = new Car();
        car.setName("Wry");
        car.setAge(2);
        car.setCustomers(new ArrayList<String>(){{add("a");add("b");}});
        System.out.println(car);

        CarDTO carDTO = CarMapper.INSTANCE.carToCarDTO(car);
        System.out.println(carDTO);
    }
}
